[NTG-context] upload

2024-04-01 Thread Hans Hagen
When developing this Hans' Swedish improved a lot. {\language[sv] Den lilla del av befolkningen som handlar på IKEA och tittar på fåniga krimserier förstår kanske detta: \im {\sqrt {x + 1} = \sin(4 + y)}!} \stopbuffer \typebuffer[option=TEX] Which gives us the beautifully typeset: \startc

[NTG-context] Re: \intertext and highlighting with \alignhere/\breakhere

2024-03-12 Thread Hans Hagen
r {d + e} \alignhere= f \breakhere g \alignhere= h + i \stopformula \page \samplefile{knuth} \startformula \text{something} + \text{really} + \text{really} + \text{long} \alignhere= \sqrt{x} \numberhere \texthere[inbetween]{\input{knuth}}

[NTG-context] \intertext and highlighting with \alignhere/\breakhere

2024-03-12 Thread Max Chernoff
} \breakhere \stoptexdefinition \protect \starttext \section{Old alignment} \samplefile{knuth} \placeformula\startformula\startalign \NC \text{something} + \text{really} + \text{really} + \text{long} \NC= \sqrt{x} \NR[+] \intertext{\samplefile{knuth}}

[NTG-context] Re: Status of Asymptote

2024-01-03 Thread Jeroen
   unitsize(1cm);    draw((-.1,0) -- (2,0), arrow=Arrow(TeXHead));    draw((0,-.1) -- (0,2), arrow=Arrow(TeXHead));    draw((0,0) .. (1,1) .. (2,sqrt(2))); \stopASY    \stopplacefigure \stoptext Op 31/12/2023 om 00:33 schreef Aditya Mahajan: On Sun, 31 Dec 2023, Shiv Shankar

[NTG-context] Re: Seeking advice for module that draws globes

2023-12-17 Thread Hans Hagen via ntg-context
time is actually at the mp end. - in your lua code do this local cosd = math.cosd local sind = math.sind local sqrt = math.sqrt - also, use "MP.makeglobe" in the mp code and at the lua end function MP.makeglobe"" as that is the user namespace. I'll mail you the lua file with so

[NTG-context] Re: Fractions

2023-12-10 Thread Gavin via ntg-context
rttext Some small fractions are already available in many fonts, like \onehalf\ and \onethird. Others can be built using superior and inferior numbers in some fonts. This includes the fractions required to find the normal and shearing stresses on an oblique plane defined by $l=\sqrt{\threethirteenth

[NTG-context] Re: Fractions (was \placefigure[location=here...] problem)

2023-12-10 Thread Hans Hagen via ntg-context
{\sfrac{1}{3}} \type{\frac{1}{3}}: \m{\frac{1}{3}} \type{\dfrac{1}{3}}: \m{\dfrac{1}{3}} \type{\cfrac{1}{3}}: \m{\cfrac{1}{3}} \type{\vfrac{1}{3}}: \m{\vfrac{1}{3}} \type{\hfrac{1}{3}}: \m{\hfrac{1}{3}} \stoplines \stoptext Or, for inline math, $\sqrt{1/3}$. radicals are somewhat special to deal

[NTG-context] Re: Fractions (was \placefigure[location=here...] problem)

2023-12-09 Thread Aditya Mahajan
}{3}} > \type{\frac{1}{3}}: \m{\frac{1}{3}} > \type{\dfrac{1}{3}}: \m{\dfrac{1}{3}} > \type{\cfrac{1}{3}}: \m{\cfrac{1}{3}} > \type{\vfrac{1}{3}}: \m{\vfrac{1}{3}} > \type{\hfrac{1}{3}}: \m{\hfrac{1}{3}} > \stoplines > > \stopt

[NTG-context] Fractions (was \placefigure[location=here...] problem)

2023-12-09 Thread Wolfgang Schuster
anton.chig...@mail.com schrieb am 09.12.2023 um 14:15: I worked, ;-), thanks. Let me ask you another thing, how can I avoid messing up the line spacing by using \sqrt and \frac, the line that follows these has increased line spacing in the pdf output code: Find the normal and shearing stresses

[NTG-context] Re: \placefigure[location=here...] problem

2023-12-09 Thread anton . chigurh
I worked, ;-), thanks. Let me ask you another thing, how can I avoid messing up the line spacing by using \sqrt and \frac, the line that follows these has increased line spacing in the pdf output code: Find the normal and shearing stresses on an oblique plane defined by $l=\sqrt{\frac{3}{13

[NTG-context] Re: Combining python and lua

2023-10-26 Thread Alexandre Christe
compute the trigonometric function leading to sin(pi/4) = 1/2, or cos(pi/6) > > = sqrt(3)/2 and display it in math mode. > > > > Here’s my current MWE, where I fail to convert the angles in radians > > there is math.sind, cosd, etc. for computing sin for angle in

[NTG-context] Re: Combining python and lua

2023-10-25 Thread Aditya Mahajan
and to compute the > trigonometric function leading to sin(pi/4) = 1/2, or cos(pi/6) = sqrt(3)/2 > and display it in math mode. > > Here’s my current MWE, where I fail to convert the angles in radians there is math.sind, cosd, etc. for computing sin for angle in degrees. The i

[NTG-context] Re: Combining python and lua

2023-10-25 Thread Bruce Horrocks
with math notation) and to compute the > trigonometric function leading to sin(pi/4) = 1/2, or cos(pi/6) = sqrt(3)/2 > and display it in math mode. You can use templates to subtitute values into a string and then send that out to be typeset. For example: if you want to turn "sin(pi/4) = 1/2"

[NTG-context] Combining python and lua

2023-10-25 Thread Alexandre Christe
, or cos(pi/6) = sqrt(3)/2 and display it in math mode. Here’s my current MWE, where I fail to convert the angles in radians and fail to display the result in symbolic form. \starttext \startluacode local angleList = {0, 30, 45, 60, 90, 120, 135, 150, 180, 210, 225, 240, 270, 300, 315, 330, 360

[NTG-context] itemize

2023-08-15 Thread Hans Hagen via ntg-context
(nesting, trial mode etc), think of \bTABLE \bTR \bTD \startitemize[a] \startitem \im{\sqrt{\frac{1}{x^4}}} \stopitem \startitem \startitemize[n] \startitem \im{\sqrt{\frac{1}{x^4}}} \stopitem \startitem \im{\sqrt{\frac{1}{x^4}}} \stopitem \stopitemize

[NTG-context] itemize

2023-08-15 Thread Hans Hagen via ntg-context
(nesting, trial mode etc), think of \bTABLE \bTR \bTD \startitemize[a] \startitem \im{\sqrt{\frac{1}{x^4}}} \stopitem \startitem \startitemize[n] \startitem \im{\sqrt{\frac{1}{x^4}}} \stopitem \startitem \im{\sqrt{\frac{1}{x^4}}} \stopitem \stopitemize

[NTG-context] Re: split align in formulas

2023-08-14 Thread Mikael Sundqvist
b}{a} \right) = - \frac{c}{a} \NC \quad > \text{factoritzam} \NR > \NC (k-D)(k+D) = - \frac{c}{a} \NC \quad \text{canvi de variable} \NR > \NC k^2 - D^2 = - \frac{c}{a} \NC \quad \text{suma per diferència} \NR > \NC k = \pm\sqrt{ D^2 - \frac{c}{a}} \NC \quad \text{resolem l'equació}

[NTG-context] split align in formulas

2023-08-14 Thread Xavier B.
variable} \NR \NC k^2 - D^2 = - \frac{c}{a} \NC \quad \text{suma per diferència} \NR \NC k = \pm\sqrt{ D^2 - \frac{c}{a}} \NC \quad \text{resolem l'equació} \NR \NC x = k - D = \NC \pm \sqrt{ D^2 - \frac{c}{a}} - D\quad \text{desfeim el canvi} \NR \stopalign \stopformula on $D = (\frac{b}{2a})$ i $x

Re: [NTG-context] new units

2023-05-06 Thread Hans Hagen via ntg-context
suring 4es ^ 2 which i admit is a bit less than 4in ^2. But, if you're really into old units we can measure your feet and replace "max 19 feet" message by "max 20 braslaus". Actually you can do a sqrt: \starttext \the\floatexpr\pfsqrt 2\relax \the\pfsqrt 2\rel

Re: [NTG-context] How to use noto sans math font?

2023-04-05 Thread Mikael Sundqvist via ntg-context
Noto Sasn Math Fonts > \startformula > a^2 \quad \sqrt{a} > \stopformula > \stoptext > > I get the errors `Math error: parameter 'supshiftup' with id 51 in style 0 > is not set'. > > Is there

[NTG-context] How to use noto sans math font?

2023-04-05 Thread 李延瑞
Test Noto Sasn Math Fonts \startformula a^2 \quad \sqrt{a} \stopformula \stoptext I get the errors `Math error: parameter 'supshiftup' with id 51 in style 0 is not set'. Is there some method to solve it? -- Best regards, Li Yanrui

[NTG-context] Font substitution for extensible symbols

2023-02-01 Thread Yaroslav Beltukov via ntg-context
\startformula \sqrt{\frac{1}{2}}\dorecurse{15}{+\sqrt{\blackrule[width=10pt,height=#1pt,depth=#1pt,color=gray]}} \stopformula \startformula \sqrt{\blackrule[width=10pt,height=100pt,depth=100pt,color=gray]} \stopformula \stoptext It works in MKIV but it gives the following error in the latest LMTX

Re: [NTG-context] Unconnected \mathboxanchored produces unexpected results

2022-12-22 Thread Hans Hagen via ntg-context
ded not to use this connector, producing unexpected results. \startformula \mathboxanchored[nucleus]{c1}{e}^{\dot\alpha} \mathboxanchored[nucleus]{c2}{e}_{\mu} \mathboxanchored[nucleus]{c3}{e}^{\beta} = \frac{1}{\sqrt{2}} \bar\sigma^{\dot\alpha\beta}_{\mu} \stopformula \stopboxanchor

[NTG-context] Unconnected \mathboxanchored produces unexpected results

2022-12-22 Thread Gavin via ntg-context
lts. \startformula \mathboxanchored[nucleus]{c1}{e}^{\dot\alpha} \mathboxanchored[nucleus]{c2}{e}_{\mu} \mathboxanchored[nucleus]{c3}{e}^{\beta} = \frac{1}{\sqrt{2}} \bar\sigma^{\dot\alpha\beta}_{\mu} \stopformula \stopboxanchoring \stoptext anchors-002-copy.pdf Description: Adobe

[NTG-context] Accent wrecking \mathboxanchored

2022-12-22 Thread Gavin via ntg-context
_{\mu}% <-- This works, without accent %\mathboxanchored[nucleus]{c2}{\bar{e}}_{\mu} % <-- This does not work, with accent \bar{\mathboxanchored[nucleus]{c2}{e}}_{\mu} % <-- This works, but connector punches through accent \mathboxanchored[nucleus]{c3}{e}^{\beta} = \f

Re: [NTG-context] Mathematical MetaFun Mania

2022-12-15 Thread Hans Hagen via ntg-context
\starttext \startboxanchoring[+] \connectboxanchors[top][top][distance=1ex,arrow=no] {c1}{c2} \connectboxanchors[bottom] [bottom] [distance=1ex,arrow=no] {c2}{c3} \startformula \mathboxanchored[nucleus]{c1}{e}_{\alpha} \mathboxanchored[nucleus]{c2}{e}^{\mu} \mathboxanchor

Re: [NTG-context] \hpos in math - Half solved

2022-12-07 Thread Hans Hagen via ntg-context
=1ex] {d1}{d2} \startformula \mathboxanchored[nucleus]{c1}{e}_{\alpha} \mathboxanchored[nucleus]{c2}{e}^{\mu} \mathboxanchored[nucleus]{d1}{todo} \mathboxanchored[nucleus]{d2}{e}_{\dot{\beta}} = \frac{1}{\sqrt{2}} \sigma_{\alpha,\dot{\beta}}^{\mu} \stopformula \stopboxanchoring

Re: [NTG-context] \hpos in math

2022-12-06 Thread Gavin via ntg-context
athboxanchored{X}{e}_\alpha \mathboxanchored{Y}{e}^\mu \mathboxanchored{Z}{e}_{\dot\beta} = \textfrac{1}{\sqrt{2}}\sigma_{\alpha\dot\beta}^\mu \stopformula I added code to turn the arrow produced by \connectboxanchors into my contraction overlay, but that doesn’t affect these issues. > in your exa

Re: [NTG-context] Page break with placement of a figure at the bottom of the page

2022-11-13 Thread Fabrice Couvreur via ntg-context
, location={Premières}, time={55 minutes}] \showgrid \startcomponent[ie_3] \startex Nous considérons la suite \u définie sur \N par son premier terme \m{u_0=-2} et la relation de récurrence \startformula \text{pour tout} \; n \in \N, \; u_{n+1}=\sqrt{3+u_n}. \stopformul

[NTG-context] Perceptrons

2022-10-16 Thread Thangalin via ntg-context
< 0): theta := atan( dy / dx ) - pi; elseif (dx == 0) and (dy > 0): theta := pi / 2; elseif (dx == 0) and (dy < 0): theta := -pi / 2; fi; theta enddef; vardef degrees( expr rad ) = rad * 180 / pi enddef; vardef distance( expr ax, ay, bx, by ) =

Re: [NTG-context] \text{...} inside \sqrt is tiny

2022-10-13 Thread Hans Hagen via ntg-context
On 10/13/2022 2:38 PM, Gavin via ntg-context wrote: Hi List, When I use text inside a radical, the text is script-script size. $\text{Radius} = \sqrt{\text{Area}/\pi}$ It should be normal size. Any ideas for a fix? I stumbled on this issue when working with \units, but it is not specific

[NTG-context] \text{...} inside \sqrt is tiny

2022-10-13 Thread Gavin via ntg-context
Hi List, When I use text inside a radical, the text is script-script size. $\text{Radius} = \sqrt{\text{Area}/\pi}$ It should be normal size. Any ideas for a fix? I stumbled on this issue when working with \units, but it is not specific to units. Thanks! Gavin

Re: [NTG-context] new uplaod

2022-09-10 Thread Hans Hagen via ntg-context
o,     left=\zerocount,     right="FE948] $ \fourier{(z+1)} $ $ \fourier{(z+1)} + \sqrt[2]{1}$ $ \fourier{(z+1)} + \courier{(z+1)} + \xourier{(z+1)} $ $ \fourier{\left(z+\frac12\right)} + \courier{\left(z+\frac12\right)} + \xourier{\left(z+\frac12\right)} $ $

Re: [NTG-context] new uplaod

2022-09-10 Thread Alexandre Christe via ntg-context
[rule=no, > left=\zerocount, > right="FE948] > > $ \fourier{(z+1)} $ > > $ \fourier{(z+1)} + \sqrt[2]{1}$ > > $ \fourier{(z+1)} + \courier{(z+1)} + \xourier{(z+1)} $ > > $ \fourier{\left(z+\frac12\right)} + \courier{\left(z+\frac12\right)} + > \xourier

[NTG-context] new uplaod

2022-08-25 Thread Hans Hagen via ntg-context
o, left=\zerocount, right="FE948] $ \fourier{(z+1)} $ $ \fourier{(z+1)} + \sqrt[2]{1}$ $ \fourier{(z+1)} + \courier{(z+1)} + \xourier{(z+1)} $ $ \fourier{\left(z+\frac12\right)} + \courier{\left(z+\frac12\right)} + \xourier{\left(z+\frac12\right)} $ $ \autofences \fourier{(z+\frac12)

Re: [NTG-context] Cron /var/www/aanhet.net/context/bin/cron/context-mirror

2022-07-27 Thread Hans Hagen via ntg-context
{\setmscale{1500}} % {\setmscale{1.5}} \startformula a=b^2 + \sqrt[3]{\frac{1}{x}} \stopformula \startformula \mx a=b^2 + \sqrt[3]{\frac{1}{x}} \stopformula \startformula \mxx a=b^2 + \sqrt[3]{\frac{1}{x}} \stopformula \startformula \TinyMath a=b^2 + \sqrt[3]{\frac

Re: [NTG-context] Font too small with a macro

2022-04-23 Thread Günter Kolousek via ntg-context
t but >> with lmtx the font under the square root is smaller. >> Thank you >> Fabrice >> >> \protected\def\exp{\text{\normal exp}} >> >> \starttext >> \startformula >>\sqrt{\exp(x)}=\exp\left(\frac{x}{2}\right). >> \stopformula >

Re: [NTG-context] Font too small with a macro

2022-04-23 Thread Mikael Sundqvist via ntg-context
er the square root is smaller. > >> Thank you > >> Fabrice > >> > >> \protected\def\exp{\text{\normal exp}} > >> > >> \starttext > >> \startformula > >>\sqrt{\exp(x)}=\exp\left(\frac{x}{2}\right). > >> \stopform

Re: [NTG-context] Font too small with a macro

2022-04-23 Thread Günter Kolousek via ntg-context
Couvreur via ntg-context wrote: Hello, If I compile with context the expected result is correct but with lmtx the font under the square root is smaller. Thank you Fabrice \protected\def\exp{\text{\normal exp}} \starttext \startformula \sqrt{\exp(x)}=\exp\left(\frac{x}{2}\right). \stopformula

Re: [NTG-context] Font too small with a macro

2022-04-23 Thread Fabrice Couvreur via ntg-context
pile with context the expected result is correct but with lmtx > the font under the square root is smaller. > > Thank you > > Fabrice > > > > \protected\def\exp{\text{\normal exp}} > > > > \starttext > > \startformula > >\sqrt{\exp(x)}=\exp

Re: [NTG-context] Font too small with a macro

2022-04-23 Thread Mikael Sundqvist via ntg-context
mal exp}} > > \starttext > \startformula >\sqrt{\exp(x)}=\exp\left(\frac{x}{2}\right). > \stopformula > \stoptext Hi, without your redefinition of \exp it looks fine (exp is already defined). Does that solve your problem, or are you doing something else, and t

[NTG-context] Font too small with a macro

2022-04-23 Thread Fabrice Couvreur via ntg-context
Hello, If I compile with context the expected result is correct but with lmtx the font under the square root is smaller. Thank you Fabrice \protected\def\exp{\text{\normal exp}} \starttext \startformula \sqrt{\exp(x)}=\exp\left(\frac{x}{2}\right). \stopformula \stoptext

Re: [NTG-context] STIX2 font issues with freshly installed LMTX

2022-01-05 Thread Heinrich Paeßens via ntg-context
>> - >>> \setupbodyfont[stixtwo] >>> \starttext >>> >>> Test ß 1lIjJuQ \% § \& ?! VERSAL-ẞ- \|> --- 1234567890 --- // >>> >>> \placeformula[eqn:def-m] >>> \startformula >>> m = \frac{m_0}{\sqrt{1-\frac

[NTG-context] STIX2 font issues with freshly installed FMTX

2022-01-03 Thread Heinrich Paeßens via ntg-context
): - \setupbodyfont[stixtwo] \starttext Test ß 1lIjJuQ \% § \& ?! VERSAL-ẞ- \|> --- 1234567890 --- // \placeformula[eqn:def-m] \startformula m = \frac{m_0}{\sqrt{1-\frac{v^2}{c^2}}} \stopformula \stoptext - Unfortunately the compiler throws an error — why is there a check of

Re: [NTG-context] Math prime issues for some fonts

2021-11-29 Thread Jack Hill via ntg-context
- also on Windows). I've no idea if this is visible in print since I don't print the pdfs. The effect is also reproducible with the wiki version of context. \starttext \starttabulate[|l|c|] \FL \BC Font name \BC Math sqrt \NR \ML \NC Latin Modern Roman \NC

Re: [NTG-context] upload

2021-11-26 Thread Alain Delmotte via ntg-context
+ e = f $\blank $\showboxes\setupmathspacing[tight]  x^2_1$\quad $\showboxes\setupmathspacing[normal] x^2_1$\quad $\showboxes\setupmathspacing[loose]  x^2_1$\blank $\showboxes\setupmathspacing[narrow]\sqrt[2]{x+1}$\quad

[NTG-context] upload

2021-11-24 Thread Hans Hagen via ntg-context
\setupmathspacing[loose] x^2_1$\blank $\showboxes\setupmathspacing[narrow]\sqrt[2]{x+1}$\quad $\showboxes\setupmathspacing[normal]\sqrt[2]{x+1}$\quad $\showboxes\setupmathspacing[wide] \sqrt[2]{x+1}$\blank $\showboxes\setupmathspacing[less] \sqrt[2]{x+1}$\quad $\showboxes\setupmathspacing[normal]\sqrt[2]{x+1

Re: [NTG-context] Math font tips and tricks

2021-11-11 Thread Marcus Vinicius Mesquita via ntg-context
\gamma x) dx = \lim Z → ∞ \stopformula \egroup \startformula \sqrt{34×y\frac{21\alpha^2}{98.0 x_2}}Δθ = \sin(a)^2 + \cos(b)^2 \stopformula \bgroup\bf \startformula \sqrt{34×y\frac{21\alpha^2}{98.0 x_2}}Δθ = \sin(a)^2 + \cos(b)^2 \stopformula \egroup \stoptext

Re: [NTG-context] Framedtext : text out of frame

2021-09-26 Thread Hans Hagen via ntg-context
          Une fonction de quantité variable est une expression analytique composée, de quelque manière que ce soit, de cette même quantité & de nombres, ou de quantités constantes.           Par exemple, \m{a+3z} ; \m{az-4zz} ;           \m{az+b\sqrt{aa-zz}} , cz ; \m{etc}. sont

[NTG-context] Framedtext : text out of frame

2021-09-26 Thread Fabrice Couvreur via ntg-context
manière que ce soit, de cette même quantité & de nombres, ou de quantités constantes. Par exemple, \m{a+3z} ; \m{az-4zz} ; \m{az+b\sqrt{aa-zz}} , cz ; \m{etc}. sont des fonctions de \m{z}. \stopitem\par \startitem Une fonction de vari

Re: [NTG-context] Equation alignment

2021-09-07 Thread Jeong Dal via ntg-context
Dear Sylvain, I am using ’\startalign’ > > \starttext > \startformula > \eqalign{ > ax^2+bx+c &= 0 \cr > x &= \frac{-b \pm \sqrt{b^2-4ac}}{2a} \cr > } > \stopformula > \stoptext > \starttext \startformula \startalign \NC ax^2 + bx + c \NC = 0 \NR \NC x \

Re: [NTG-context] Equation alignment

2021-09-07 Thread Wolfgang Schuster via ntg-context
c{-b \pm \sqrt{b^2-4ac}}{2a} \cr } \stopformula \stoptext Both ampersands are rendered literally. Does anyone know how to properly typeset aligned equations? \starttext \startformula \startmathalignment%[align={right,left}] \NC ax^2+bx+c \NC = 0    \NR \NC x \NC

[NTG-context] Equation alignment

2021-09-07 Thread Sylvain Hubert via ntg-context
Dear List, The following example of equation alignment copied from An Excursion is not reproducible under my context 2021.03.05 shipped with texlive 2021: \starttext \startformula \eqalign{ ax^2+bx+c &= 0 \cr x &= \frac{-b \pm \sqrt{b^2-4ac}}{2a} \cr } \stopformula \stoptext Both am

[NTG-context] Bug with mathalignment and columns

2021-08-23 Thread Jack Hill via ntg-context
= 1, 98, 1 do context(lorum) end \stopluacode \startformula \startmathalignment[n=1] \NC y = ax \NR \NC a^2 + b^2 = c^2 \NR \NC x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} \NR \stopmathalignment \stopformula \stopcolumns \stoptext Adding text after the formula seems to fix the issue, but that mea

Re: [NTG-context] Size of root symbol

2021-08-22 Thread Bruce Horrocks via ntg-context
> On 18 Aug 2021, at 17:06, Aditya Mahajan via ntg-context > wrote: > > On Wed, 18 Aug 2021, Bruce Horrocks via ntg-context wrote: > >> Is there a simple way to get both root signs in this MWE to be the same size? >> >> \starttext >> \start

Re: [NTG-context] Size of root symbol

2021-08-18 Thread Hans Hagen via ntg-context
On 8/18/2021 6:06 PM, Aditya Mahajan via ntg-context wrote: On Wed, 18 Aug 2021, Bruce Horrocks via ntg-context wrote: Is there a simple way to get both root signs in this MWE to be the same size? \starttext \startformula \sqrt[3]{4n} \ne \sqrt[3] {n} \stopformula \stoptext Make

Re: [NTG-context] Size of root symbol

2021-08-18 Thread Aditya Mahajan via ntg-context
On Wed, 18 Aug 2021, Bruce Horrocks via ntg-context wrote: > Is there a simple way to get both root signs in this MWE to be the same size? > > \starttext > \startformula > \sqrt[3]{4n} \ne \sqrt[3] {n} > \stopformula > \stoptext Make the quantities whose roots are being ta

[NTG-context] Size of root symbol

2021-08-18 Thread Bruce Horrocks via ntg-context
Is there a simple way to get both root signs in this MWE to be the same size? \starttext \startformula \sqrt[3]{4n} \ne \sqrt[3] {n} \stopformula \stoptext Thanks. — Bruce Horrocks Hampshire, UK ___ If your question

[NTG-context] Adjust the length of a frame

2021-07-27 Thread Fabrice Couvreur via ntg-context
d'or, noté \m{\phi}, est tel que \m{\phi=\dfrac{1+\sqrt{5}}{2}}. Montrer que \m{\phi} est irrationnel. \stopexercice \startsolution Nous raisonnons par l'absurde en supposant que \m{\phi} est rationnel. \stopsolution \stoptext

Re: [NTG-context] Adjust the length of a frame

2021-07-27 Thread Fabrice Couvreur via ntg-context
>[text=Exercice, > number=yes, > numbercommand=\groupedcommand{}{.}, > style=italic] > > \defineenumeration >[solution] >[text=Solution, > headcommand=\ACFRAME, > number=no, > numbercommand=\groupedcommand{}{}, > style=normal] > >

[NTG-context] Texte source 30 / 5000 Résultats de traduction Adjust the length of a frame

2021-07-26 Thread Fabrice Couvreur via ntg-context
=normal] \starttext \startexercice{Le nombre d'or est irrationnel} Le nombre d'or, noté \m{\phi}, est tel que \m{\phi=\dfrac{1+\sqrt{5}}{2}}. Montrer que \m{\phi} est irrationnel. \stopexercice \startsolution Nous raisonnons par l'absurde en supposant que \m{\phi} est rationnel. \stopsolution

Re: [NTG-context] mathfun (Hans Hagen)

2021-05-22 Thread Hans Hagen
On 5/21/2021 11:55 PM, Jeong Dal wrote: Dear Hans, Thank you for your new module for math. If possible, I prefer to use $ \sqrt(x) = \compute\sqrt[.3N] {2} $ $ \pi = \mathexpr[.40N]{pi} $ It is more direct to use and good to write a text in which we need some math calculation

Re: [NTG-context] mathfun (Hans Hagen)

2021-05-21 Thread Jeong Dal
Dear Hans, Thank you for your new module for math. If possible, I prefer to use $ \sqrt(x) = \compute\sqrt[.3N] {2} $ $ \pi = \mathexpr[.40N]{pi}$ It is more direct to use and good to write a text in which we need some math calculation. It is another good news for me. I

[NTG-context] sqrt does not align properly

2021-05-05 Thread Benny Schurig
Peak of the root ends at baseline, but only in some cases: \starttext   $\sqrt{2}$ \qquad $\sqrt{a^2+b^2}$ \qquad $\sqrt{a^2-b^2}$ \stoptext In this example only \sqrt{a^2+b^2} works as expected [ConTeXt  ver: 2021.04.29 23:09 LMTX  fmt: 2021.5.4] Typesetting in ConTeXt live is correct

Re: [NTG-context] Metapost: directionpoint gives unexpected point(?)

2021-02-12 Thread Hans Hagen
p[]; % This defines the reulleaux curves % p[0] is a "base" reulleaux curve path cl,cs,rl ; z0 = (0,6/sqrt(3)*u); z1 = z0 rotated 120; cl := (fullcircle scaled 4u) shifted z0; cl := cl cutbefore point 1/6 along cl cutafter point 2/6 along cl; cs := (fullcircle scaled 16u) shifted z1

Re: [NTG-context] Metapost: directionpoint gives unexpected point(?)

2021-02-11 Thread Mikael Sundqvist
of points): > > \starttext > \startMPdefinitions{doublefun} > > def FOO(expr u) = > > path p[]; > > % This defines the reulleaux curves > % p[0] is a "base" reulleaux curve > path cl,cs,rl ; > z0 = (0,6/sqrt(3)*u); > z1 = z0 rotated 120; > cl := (fullcircl

Re: [NTG-context] Metapost: directionpoint gives unexpected point(?)

2021-02-11 Thread Hans Hagen
happens (keep in mind that ".." is not always that useful with that amount of points): \starttext \startMPdefinitions{doublefun} def FOO(expr u) = path p[]; % This defines the reulleaux curves % p[0] is a "base" reulleaux curve path cl,cs,rl ; z0 = (0,6/sqrt(3)*u); z1

Re: [NTG-context] Metapost: directionpoint gives unexpected point(?)

2021-02-11 Thread Mikael Sundqvist
curve path cl,cs,rl ; z0 = (0,6/sqrt(3)*u); z1 = z0 rotated 120; cl := (fullcircle scaled 4u) shifted z0; cl := cl cutbefore point 1/6 along cl cutafter point 2/6 along cl; cs := (fullcircle scaled 16u) shifted z1; cs := cs cutafter point 1/6 along cs; p[0] := cs .. cl .. (cs rotated 120) .. (cl r

Re: [NTG-context] Metapost: directionpoint gives unexpected point(?)

2021-02-05 Thread Mikael Sundqvist
rttext > \startMPpage[offset=3bp] > u:=1cm; > path cl,cs,rl,p[]; > z0 = (0,6/sqrt(3)*u); > z1 = z0 rotated 120; > cs := (fullcircle scaled 16u) shifted z1; > cs := cs cutafter point 1/6 along cs; > cl := (fullcircle scaled 4u) shifted z0; > cl := cl cutbefore point 1/6 alo

[NTG-context] Metapost: directionpoint gives unexpected point(?)

2021-02-05 Thread Mikael Sundqvist
? Or some other way out? /Mikael \starttext \startMPpage[offset=3bp] u:=1cm; path cl,cs,rl,p[]; z0 = (0,6/sqrt(3)*u); z1 = z0 rotated 120; cs := (fullcircle scaled 16u) shifted z1; cs := cs cutafter point 1/6 along cs; cl := (fullcircle scaled 4u) shifted z0; cl := cl cutbefore point 1/6 along cl

Re: [NTG-context] LMTX isn't typesetting math correctly with Pagella

2021-01-18 Thread Mikael Sundqvist
; intersects the > >> f and looks rather ugly. However, compiling with the --luatex switch > >> fixes these issues and the math looks nice again. > >> > >> Can anybody else replicate this issue, and does anybody know why it is > >> happening? > >>

Re: [NTG-context] LMTX isn't typesetting math correctly with Pagella

2021-01-17 Thread Hans Hagen
ue, and does anybody know why it is happening? This the code I used to test: |\setupbodyfont[pagella] \starttext \startformula |f| = \sqrt{\int_0^1 |f(t)|^2 \text{d}t} \stopformula \stoptext ||| I'll check it ... smells like some interference between newer and older corrections (these gyre fon

Re: [NTG-context] LMTX isn't typesetting math correctly with Pagella

2021-01-15 Thread Hans Hagen
why it is happening? This the code I used to test: |\setupbodyfont[pagella] \starttext \startformula |f| = \sqrt{\int_0^1 |f(t)|^2 \text{d}t} \stopformula \stoptext ||| I'll check it ... smells like some interference between newer and older corrections (these gyre fonts need some specia

Re: [NTG-context] LMTX isn't typesetting math correctly with Pagella

2021-01-15 Thread Otared Kavian
looks nice again.Can anybody else replicate this issue, and does anybody know why it is happening?This the code I used to test: \setupbodyfont[pagella] \starttext \startformula |f| = \sqrt{\int_0^1 |f(t)|^2 \text{d}t} \

[NTG-context] LMTX isn't typesetting math correctly with Pagella

2021-01-15 Thread Jack Hill
st: |\setupbodyfont[pagella] \starttext \startformula |f| = \sqrt{\int_0^1 |f(t)|^2 \text{d}t} \stopformula \stoptext ||| Jack || ___ If your question is of interest to others as well, please add an entry to the W

[NTG-context] new upload

2021-01-08 Thread Hans Hagen
}\par \blank {\input tufte } \blank {\glyphxscale 1070 \input tufte } \definetweakedfont[squeezed] [xscale=0.9] \blank $a = mb^2 + \sqrt{123}$ \blank {\squeezed $a = mb^2 + \sqrt{123}$} \stoptext Just run these examplex in lmtx to get an idea. It might come in handy

Re: [NTG-context] efficiently scaling fonts

2020-12-24 Thread Pablo Rodriguez
1*2)/3\relax \glyphyscale#1\relax \samplefile{ward}% \par \stop \def\TEST{y = \sqrt{x^2 + 1}^3}% \dontleavehmode \ruledhbox{\glyphxscale #1 \glyphyscale #1 $\left{\TEST\right}$} \ruledhbox{\glyphxscale #1 \glyphyscal

[NTG-context] efficiently scaling fonts

2020-12-24 Thread Hans Hagen
{ward}% \glyphxscale\numexpr(#1*2)/3\relax \glyphyscale#1\relax \samplefile{ward}% \par \stop \def\TEST{y = \sqrt{x^2 + 1}^3}% \dontleavehmode \ruledhbox{\glyphxscale #1 \glyphyscale #1 $\left{\TEST\right}$} \ruledhbox{\glyphxscale #1

Re: [NTG-context] oldstyle numerals in STIX Two Math

2020-10-21 Thread Alan Bowen
gt; > \definefontfeature[f:oldstyle][onum=yes] > > > > \setupbodyfont[mainface, 18pt] > > \addfeature{f:oldstyle} > > > > \starttext > > 123456789 > > \blank[big] > > $\sqrt{2} + 1234$ > > \stoptext > > > > Any pointers will

Re: [NTG-context] oldstyle numerals in STIX Two Math

2020-10-21 Thread Henning Hraban Ramm
o Text][] %onum=yes does not seem to > work > \definefontfamily[mainface][mm][STIX Two Math][] > \definefontfeature[f:oldstyle][onum=yes] > > \setupbodyfont[mainface, 18pt] > \addfeature{f:oldstyle} > > \starttext > 123456789 > \blank[big] > $\sqrt{2} + 1234$ > \sto

[NTG-context] oldstyle numerals in STIX Two Math

2020-10-21 Thread Alan Bowen
][] \definefontfeature[f:oldstyle][onum=yes] \setupbodyfont[mainface, 18pt] \addfeature{f:oldstyle} \starttext 123456789 \blank[big] $\sqrt{2} + 1234$ \stoptext Any pointers will be greatly appreciated. Alan ___ If your

Re: [NTG-context] new upload

2020-08-31 Thread Jairo A. del Rio
x_{200} \Equal n$ > > \blank > > \dorecurse{10} { > test \discretionary > {\darkred hel $\sqrt{y}$ lo} > {\darkgreen good $\sqrt{z}$ bye} > {\darkblue wel $\sqrt{x}$ come} test > } > > \blank > > \dorecurse{10} {test me #1 >

[NTG-context] new upload

2020-08-31 Thread Hans Hagen
{\darkred hel $\sqrt{y}$ lo} {\darkgreen good $\sqrt{z}$ bye} {\darkblue wel $\sqrt{x}$ come} test } \blank \dorecurse{10} {test me #1 $x + 2x \discretionary class 2 {$+ \, \cdots $} {$ \cdots \, +$} {$+ \, \cdots \, +$} nx$ test } \stoptext You

[NTG-context] Fwd: Radicals are broken (again)

2020-07-05 Thread Jairo A. del Rio
The following gives wrong outputs both in LuaTeX and LuaMetaTeX: \starttext $\sqrt{3}$ \stoptext The beta date is 2020.7.5. Thank you very much. Jairo :) ___ If your question is of interest to others as well, please add

[NTG-context] Radicals are broken (again)

2020-07-05 Thread Jairo A. del Rio
The following gives wrong outputs both in LuaTeX and LuaMetaTeX: \starttext $\sqrt{3}$ \stoptext The beta date is 2020.7.5. Thank you very much. Jairo :) ___ If your question is of interest to others as well

Re: [NTG-context] More funny numbers

2020-06-12 Thread Hans Hagen
On 6/12/2020 4:35 AM, Jairo A. del Rio wrote: Hi everyone! The following example shows that numerators of fractions inside math alignment environments appear with a funny size: \startTEXpage \startformula \startmathalignment[n=1,align=middle] \NC \frac{1351}{780}>\sqrt{3}>\frac{26

[NTG-context] More funny numbers

2020-06-11 Thread Jairo A. del Rio
Hi everyone! The following example shows that numerators of fractions inside math alignment environments appear with a funny size: \startTEXpage \startformula \startmathalignment[n=1,align=middle] \NC \frac{1351}{780}>\sqrt{3}>\frac{265}{153}, 3013 \frac{3}{4}>\sqrt{9082321}, \quad 183

Re: [NTG-context] Funny radicals in LMTX

2020-06-11 Thread Hans Hagen
On 6/11/2020 2:50 PM, Mikael Sundqvist wrote: Hi, I can confirm. The same problem goes with $\sqrt{\frac{2}{3}}$. put this in cont-new.mkiv: \unexpanded\def\styledrootradical#1#2% {\normalexpanded{\rootradical {\normalunexpanded{#1}}% {\noexpand\triggermathstyle

Re: [NTG-context] Funny radicals in LMTX

2020-06-11 Thread Mikael Sundqvist
Hi, I can confirm. The same problem goes with $\sqrt{\frac{2}{3}}$. /Mikael On Thu, Jun 11, 2020 at 1:53 PM Jairo A. del Rio wrote: > Hi list! Nesting radicals in LMTX give a funny font size compared with > LuaTeX, which gives the correct output. I cleaned the cache, just in case. >

[NTG-context] Funny radicals in LMTX

2020-06-11 Thread Jairo A. del Rio
Hi list! Nesting radicals in LMTX give a funny font size compared with LuaTeX, which gives the correct output. I cleaned the cache, just in case. I attach code and outputs. Thank you in advance. \startTEXpage \startformula a_{2n} = \sqrt{2-\sqrt{4-a_{2n}}} \stopformula \stopTEXpage Jairo :D

Re: [NTG-context] Updating lmtx

2020-06-07 Thread Otared Kavian
Hi Hans, Actually I was trying to fix the issue with \sqrt by updating to a newer version. But the patch you sent me in another message fixes the issue, so no need for an update today… Thanks a lot! Best regards: Otared > On 7 Jun 2020, at 12:09, Hans Hagen wrote: > > On 6/7/2020

Re: [NTG-context] Numbers inside \sqrt are small

2020-06-07 Thread Hans Hagen
On 6/6/2020 5:45 PM, Otared Kavian wrote: Hi Mikael, Thanks to your message I discovered that in all my recent documents typeset with lmtx the \sqrt has a bug… Indeed the argument under the square root is too small. (The version I have right now is 2020.05.25 23:39, after running sh

Re: [NTG-context] Numbers inside \sqrt are small

2020-06-06 Thread Otared Kavian
Hi Mikael, Thanks to your message I discovered that in all my recent documents typeset with lmtx the \sqrt has a bug… Indeed the argument under the square root is too small. (The version I have right now is 2020.05.25 23:39, after running sh install.sh). It may be that it is related

[NTG-context] Numbers inside \sqrt are small

2020-06-02 Thread Mikael Sundqvist
Hi, \starttext $2+\sqrt{2}$ \stoptext The output is attached. This happened with a release that are a bit old, as well as with the most recent upgrade. LMTX. /Mikael sqrt.pdf Description: Adobe PDF document

[NTG-context] sunny friday afternoon update

2020-05-08 Thread Hans Hagen
tweaking some math parameters, like the radical spacing. I made a macro that deals with it: $\mathopenupparameter\Umathradicalvgap{10.5}\sqrt[3]{x}$ (this one is also in mkiv, be it slightly less efficient because in lmtx we can use \Umathparameter to query the state of a variable) Already

Re: [NTG-context] Placing number in \sqrt

2020-05-04 Thread Aditya Mahajan
On Mon, 4 May 2020, cont...@vivaldi.net wrote: Hello Aditya, On 2020-05-04 10:42, Aditya Mahajan wrote: On Mon, 4 May 2020, Hans Hagen wrote: On 5/4/2020 8:47 AM, cont...@vivaldi.net wrote: Hello, compare placing "3" in the following examples: \starttext   $\sqrt[3

Re: [NTG-context] Placing number in \sqrt

2020-05-04 Thread context
Hello Aditya, On 2020-05-04 10:42, Aditya Mahajan wrote: On Mon, 4 May 2020, Hans Hagen wrote: On 5/4/2020 8:47 AM, cont...@vivaldi.net wrote: Hello, compare placing "3" in the following examples: \starttext   $\sqrt[3]{5}$ % (1)   \par   $\sqrt[3~]{5}$ % (2)

Re: [NTG-context] Placing number in \sqrt

2020-05-04 Thread context
Hello Hans, On 2020-05-04 09:31, Hans Hagen wrote: On 5/4/2020 8:47 AM, cont...@vivaldi.net wrote: Hello, compare placing "3" in the following examples: \starttext   $\sqrt[3]{5}$ % (1)   \par   $\sqrt[3~]{5}$ % (2) \stoptext In the first case, the "3"

[NTG-context] Placing number in \sqrt

2020-05-04 Thread context
Hello, compare placing "3" in the following examples: \starttext $\sqrt[3]{5}$ % (1) \par $\sqrt[3~]{5}$ % (2) \stoptext In the first case, the "3" is placed naturally by ConTeXt and placed more in the centre of "V" part of the square sign.

Re: [NTG-context] Placing number in \sqrt

2020-05-04 Thread Aditya Mahajan
On Mon, 4 May 2020, Hans Hagen wrote: On 5/4/2020 8:47 AM, cont...@vivaldi.net wrote: Hello, compare placing "3" in the following examples: \starttext   $\sqrt[3]{5}$ % (1)   \par   $\sqrt[3~]{5}$ % (2) \stoptext In the first case, the "3" is placed

  1   2   3   4   >